Object.defineProperty(exports, "__esModule", {
  value: true
});
var $2levelconfig = require("levelconfig");
var def_GameConfig = /* */function () {
  function _ctor() {
    babel_classCallCheck(this, _ctor);
    this.configContainerList = [];
    this.curLoadedCount = 0;
  }
  return babel_createClass(_ctor, [{
    key: "initAllConfig",
    value: function initAllConfig(e) {
      console.log("initAllConfig111");
      this.loadConfig($2levelconfig.default, this.callback, e);
    }
  }, {
    key: "loadConfig",
    value: function loadConfig(e, t, n) {
      var o = new e(t, this, n);
      o.tag = e;
      this.configContainerList.push(o);
    }
  }, {
    key: "getConfig",
    value: function getConfig(e) {
      for (var _t8 = 0; _t8 < this.configContainerList.length; ++_t8) {
        if (this.configContainerList[_t8].tag == e) {
          return this.configContainerList[_t8];
        }
      }
      return null;
    }
  }, {
    key: "callback",
    value: function callback(e) {
      this.curLoadedCount += 1;
      e && e(this.configContainerList.length, this.curLoadedCount);
    }
  }], [{
    key: "getInstance",
    value: function getInstance() {
      _ctor._instance || (_ctor._instance = new _ctor());
      return _ctor._instance;
    }
  }]);
}();
exports.default = def_GameConfig;
def_GameConfig._instance = null;